package Lib3d.MyUtils;


import Lib3d.Material;

/**
 * A material factory that handles the materials creation process.
 * 
 * @author Wassim Chegham
 * @version 0.1
 * @category Lib3d.MyUtils
 * 
 */
public class MaterialFactory {

    private static Material materialInstance;

    public static Material createMaterial(final String material) {
        if (MaterialFactory.materialInstance == null) {
            MaterialFactory.materialInstance = new Material(material);
        }
        return MaterialFactory.materialInstance;
    }
}
